package ng.map;

import java.awt.Graphics2D;
import java.io.IOException;

import ng.graphics.Animation;
import ng.graphics.FrameBuffer;
import ng.lib.Vector2D;

public class Spacecraft extends MapObjectDynamic {
	private static FrameBuffer frames;
	static {
		try {
			frames = new FrameBuffer(new String[] { "data/textures/player/2.png",
					"data/textures/player/3.png", "data/textures/player/4.png" });
		} catch (IOException e) {
			System.err.println("An image isn't at the right place");
			e.printStackTrace();
		}
	}

	public Spacecraft(Vector2D p) {
		super();
		this.animation = new Animation(frames, 5);
		this.position = p;
		this.mass = 2;
	
	}
	
	@Override
	public void tick() {
		super.tick();	
	}

	@Override
	public void paintComponent(Graphics2D g2) {
		super.paintComponent(g2);
	}

}
